package com.example.meitao.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

import com.example.meitao.R;

public class SignAvtivity extends AppCompatActivity implements View.OnClickListener {

    private ImageView iv_alregist,iv_nowregist;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sign_avtivity);
        initView();
        setListener();
    }
    //监听事件
    private void setListener() {
        iv_nowregist.setOnClickListener(this);

    }
    private void initView() {
        iv_nowregist = (ImageView) findViewById(R.id.iv_sign_nowregist);
        iv_alregist = (ImageView) findViewById(R.id.iv_alregist);

    }

    //控制照片隐藏和显示
    @Override
    public void onClick(View view) {
        iv_nowregist.setVisibility(View.GONE);
        iv_alregist.setVisibility(View.VISIBLE);
    }
}
